package com.xjscrm.console.mapper;

import com.xjscrm.common.entity.StaffGroup;
import com.xjscrm.console.param.user.StaffGroupQuery;
import com.xjscrm.console.vo.StaffGroupDtoVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StaffGroupMapper {
    int addStaffGroup(StaffGroup staffGroup);

    List<StaffGroupDtoVo> getStaffGroup(StaffGroupQuery staffGroupQuery);


    StaffGroup getById(@Param("id") Long id, @Param("merId") Long merId);

    int updateStaffGroup(StaffGroup staffGroup);


    int deleStaffGroupById(@Param("id") Long id, @Param("merId") Long merId);
}
